package com.eos.control.action.customer;

import com.eos.control.action.base.AbstractBaseAction;

public class UpdateCompanyAction extends AbstractBaseAction {
	private static final long serialVersionUID = 7292616474096774062L;
	private Long companyId;
	private String companyName;
	private String companyPhone;
	private String companyFax;
	private String companyLinkman;
	private String companyPostCode;
	private String companyAddr;
	
	
	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public void setCompanyPhone(String companyPhone) {
		this.companyPhone = companyPhone;
	}

	public void setCompanyFax(String companyFax) {
		this.companyFax = companyFax;
	}

	public void setCompanyLinkman(String companyLinkman) {
		this.companyLinkman = companyLinkman;
	}

	public void setCompanyPostCode(String companyPostCode) {
		this.companyPostCode = companyPostCode;
	}

	public void setCompanyAddr(String companyAddr) {
		this.companyAddr = companyAddr;
	}

	@Override
	public String execute() {
		try {
			if(null == companyId || companyId.longValue() <=0){
				statusCode = "300";
				message = "参数错误,保存买方信息失败!";
			}else{
				//TODO
				statusCode = "200";
				message = "保存买方信息成功!";
			}
		} catch (Exception e) {
			e.printStackTrace();
			statusCode = "300";
			message = "系统异常,保存买方信息失败!";
		}
		return SUCCESS;
	}
}
